package Testdemo3;



import java.util.InputMismatchException;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:周次煜
 * Date: 2024-05-18
 * Time：20:40
 */
public class Test {

    public static void main(String[] args) {
        Scanner in= new  Scanner(System.in);



        try {
            int left = in.nextInt();
            int right =  in.nextInt();
            in.nextLine();
            String  str = in.nextLine();
            char ch= str.charAt(0);


            switch (ch) {
                case  '+':
                    System.out.println(right + left);
                    break;
                case  '-':
                    System.out.println(right - left);
                    break;
                case  '*':
                    System.out.println(right * left);
                    break;
                case  '/':
                    System.out.println(right / left);
                    break;
                default:
                    throw  new  IllegalSignException("运算符异常!");
            }
        } catch (ArithmeticException e) {

            e.printStackTrace();

        } catch (InputMismatchException e) {
            System.out.println("数值输入异常!");

            e.printStackTrace();

        } catch (IllegalSignException e) {

            throw new RuntimeException(e);



        }

    }



}


class IllegalSignException extends Exception {
    public IllegalSignException(String message) {
        super(message);
    }
}
